class SettingsPannel extends eui.Component {
//设置面板
    constructor() {
        super();
        super.createChildren();//请务必调用此方法 ---白鹭如是说
        this.skinName = "SettingsSkin";
        
        this.Init();
        this.name =  "SettingsSkin";
    }

    private Title: eui.Label;
    private jixuBtn: eui.Image;
    private tuichuBtn: eui.Image;

    public Init(): void {
        this.jixuBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.RemoveThisIns, this);
        this.addEventListener(egret.Event.REMOVED, () => this.jixuBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.RemoveThisIns, this), this);

        this.tuichuBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.RemoveThisIns, this);
        this.addEventListener(egret.Event.REMOVED, () => this.tuichuBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.RemoveThisIns, this), this);
    }

    public RemoveThisIns(): void {
        Tween.get(this).to({ "alpha": 0 }, 1000).call(() => this.stage.removeChild(this));
    }
}